<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>

    <style>
      .box {
        width: 200px;
        height: 200px;
        border: 1px solid black;
        background-size: 100%;
      }

      .img {
        background-image: url('imgs/logo.png');
      }

      @media screen and (-webkit-min-device-pixel-ratio: 2) {
        .img {
          background-image: url('./imgs/logo@2x.png');
        }
      }
      @media screen and (-webkit-min-device-pixel-ratio: 3) {
        .img {
          background-image: url('./imgs/logo@3x.png');
        }
      }
    </style>
  </head>
  <body>
    <div class="box img"></div>
  </body>
</html>
